package FactoryMethod;

/**
 * 工厂方法模式客户端
 * Created by Garden on 2019/5/13.
 */
public class Client {

    public static void main(String[] args) {

         //展示产品1
        AbstractProductFactory productOneFactory = new ProductOneFactory();
        productOneFactory.showProduct();
        //展示产品2
        AbstractProductFactory productTwoFactory = new ProductTwoFactory();
        productTwoFactory.showProduct();
    }

}
